package com.zds.dao.impl;

import com.zds.dao.AccountDao;
import com.zds.mapper.AccountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @className:AccountDaoImpl
 * @date: 2024/12/24 下午8:34
 * @description:
 */
@Repository("accountDao")
public class AccountDaoImpl implements AccountDao {
    @Autowired
    private AccountMapper accountMapper;
    @Override
    public void addmoney(String accountname, Integer money) {
        accountMapper.updateincr(accountname,money);
    }

    @Override
    public void delmoney(String accountname, Integer money) {
        accountMapper.updatedecr(accountname,money);
    }
}
